<template>
  <component :is="uploadType" v-model="formData"></component>
</template>

<script>
import yyUploadImg from './component/yyUploadImg.vue'; 
export default {
  props: {
    uploadType: {
      type: String,
      default: 'yyUploadImg'
    },
    value: {
      type: String,
      default: "",
    },
  },
  components: { yyUploadImg },
  computed: {
    formData: {
      get() {
        return this.value;
      },
      set(val) {
        this.$emit("input", val);
      },
    },
  },
  name: "yyUpload",
  data () {
    return {}
  },
  methods: {}
}
</script>

<style>

</style>